<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of PackageInfo
 *
 * @author user
 */
class PackageInfo {

    private $s;

    public function  __construct($source) {
        $this->s = simplexml_load_string($source);
    }

    public function get_package_name() {
        return $this->s->name;
    }

    public function get_package_author() {
        return $this->s->author;
    }

    public function get_package_files() {
        return $this->s->file;
    }

    public function get_package_version() {
        return $this->s->version;
    }

    public function get_package_dependences() {
        return $this->s->dep;
    }
}
?>
